﻿using System;
namespace Green.AgileMapper
{
    public interface IAgileMapperTemplateStrategy
    {
        /// <summary>
        /// 默认的from item（{0}） = domain item{1}的表达式
        /// </summary>
        string DefaultEqualExpression
        {
            get;
            set;
        }
       
        /// <summary>
        /// 代码生成
        /// </summary>
        /// <param name="fromtype"></param>
        /// <param name="totype"></param>
        /// <param name="rules"></param>
        /// <returns></returns>
        string CodeGenerator(Type fromtype, Type totype, Green.AgileMapper.IMappingRule[] rules);
    }
}
